﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum TaskType
    {
        送信,
        杀怪,
        采集
    }
    class Task:NPC
    {
        private TaskType taskinfo;
        public TaskType Taskinfo 
        {
            get { return this.taskinfo; }
            set { this.taskinfo = value; }
        }
        public override void Hello()
        {
            Console.WriteLine("我的名字是{0}，我属于{1}，我从事{2}工作，请问需要帮忙{3}吗？",base.Name, base.Type, this.taskinfo, this.taskinfo);
        }
        public Task(string name, NPCType type,TaskType taskinfo) : base( name , type) 
        {
            this.taskinfo = taskinfo;
        }
    }
}
